package com.comment.service;

import com.comment.dto.CommentDTO;
import com.comment.dto.CommentListDTO;
import com.comment.dto.CommentRequest;

import java.util.List;

/**
 * @author vedeng
 * @className CommentService
 * @description:
 * @date 2021/12/13 14:27
 */
public interface CommentService {
    /**
     * @description:  添加评论
     * @param: [commentRequest, i]
     * @return: int
     * @author vedeng
     * @date: 2022/2/9 14:21
     */
    int addComment(CommentRequest commentRequest);

    /**
     * @description:  废弃获取评论列表
     * @param: [commentRequest]
     * @return: com.comment.dto.CommentListDTO
     * @author vedeng
     * @date: 2022/2/9 16:02
     */
    CommentListDTO queryAllComment(CommentRequest commentRequest);

    /**
     * @description:  废弃回复评论
     * @param: [commentRequest, i]
     * @return: void
     * @author vedeng
     * @date: 2022/2/9 17:24
     */
    void replyComment(CommentRequest commentRequest, int i);

    /**
     * @description:  评论列表
     * @param: [commentRequest] 入参
     * @return: java.util.List<com.comment.dto.CommentDTO>
     * @author vedeng
     * @date: 2022/2/21 15:33
     */
    List<CommentDTO> queryAllCommentByBlogId(CommentRequest commentRequest);
}